Part Number Hot Search : 
HMC128G8 ADF4111 RM601 EMICO 2SK788 30KP75C DC110 90814
Product Description
Full Text Search
 

To Download AD1940YSTZRL Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  sigmadsp multichannel 28-bit audio processor ad1940/ad1941 rev. b information furnished by analog devices is believed to be accurate and reliable. however, no responsibility is assumed by analog devices for its use, nor for any infringements of patents or other rights of third parties that may result from its use. specifications subject to change without notice. no license is granted by implication or otherwise under any patent or patent ri ghts of analog devices. trademarks and registered trademarks are the property of their respective owners. one technology way, p.o. box 9106, norwood, ma 02062-9106, u.s.a. tel: 781.329.4700 www.analog.com fax: 781.461.3113?2004C2010 analog devices, inc. all rights reserved. features 16-channel digital audio processor accepts sample rates up to 192 khz 28-bit 28-bit multiplier with full 56-bit accumulator fully programmable program ram for custom program download parameter ram allows complete control of 1,024 parameters control port features safelo ad for transparent parameter updates and complete mode an d memory transfer control target/slew ram for click-free volume control and dynamic parameter updates double precision mode fo r full 56-bit processing pll for generating mclk from 64 f s , 256 f s , 384 f s , or 512 f s clocks hardware-accelerated dsp core 21 kb (6,144 words) data memory for up to 128 ms of audio delay at f s = 48 khz flexible serial data port with i 2 s-compatible, left-justified, and right-justified serial port modes 8- and 16-channel tdm input/output modes on-chip voltage regulator for compatibility with 3.3 v and 5 v systems programmable low power mode fast start-up and boot time from power-on or reset 48-lead lqfp plastic package applications automotive sound systems digital televisions home theater systems (dolby digital/dts postprocessor) multichannel audio systems mini-component stereos multimedia audio digital speaker crossover musical instruments in-seat sound systems (aircrafts/motor coaches) functional block diagram voltage regulator ad1940/ad1941 28 28 dsp core data format: pll serial control interface serial data/ tdm inputs master clock input spi/i 2 c i/o ram rom serial data/ tdm outputs 04607-0-001 2 4 4 2 2 5.23 (single precision) 10.46 (double precision) figure 1. general description the ad1940/ad1941 are a complete 28-bit, single-chip, multi- channel audio sigmadsp ? for equalization, multiband dynamic processing, delay compensation, speaker compensation, and image enhancement. these algorithms can be used to compen- sate for the real world limitations of speakers, amplifiers, and listening environments, resulting in a dramatic improvement of perceived audio quality. the signal processing used in the ad1940/ad1941 is comparable to that found in high end studio equipment. most of the processing is done in full, 56-bit double-precision mode, resulting in very good, low level signal performance and the absence of limit cycles or idle tones. the dynamics processor uses a sophisticated, multiple-breakpoint algorithm often found in high end broadcast compressors. the ad1940/ad1941 are a fully programmable dsp. easy to use software allows the user to graphically configure a custom signal processing flow using blocks such as biquad filters, dyna- mics processors, and surround sound processors. an extensive control port allows click-free parameter updates, along with readback capability from any point in the algorithm flow. the ad1940/ad1941s digital input and output ports allow a glueless connection to adcs and dacs by multiple, 2-channel serial data streams or tdm data streams. when in tdm mode, the ad1940/ad1941 can input 8 or 16 channels of serial data, and can output 8 or 16 channels of serial data. the input and output port configurations can be individually set. the ad1940 is controlled by a 4-wire spi ? port; the ad1941 is controlled by a 2-wire i 2 c ? bus. other than the control interface, the functions of the two parts are identical.
ad1940/ad1941 rev. b | page 2 of 36 table of contents specifications ..................................................................................... 3 digital i/o ..................................................................................... 3 power .............................................................................................. 3 digital timing ............................................................................... 4 pll ................................................................................................. 5 regulator ........................................................................................ 5 temperature range ...................................................................... 5 absolute maximum ratings ............................................................ 6 esd caution .................................................................................. 6 digital timing diagrams ................................................................. 7 pin configuration and function descriptions ............................. 9 features ............................................................................................ 11 pin functions .............................................................................. 12 signal processing ............................................................................ 14 overview ...................................................................................... 14 numeric formats ........................................................................ 14 programming .............................................................................. 14 control port ..................................................................................... 15 overview ...................................................................................... 15 ad1940 spi port ........................................................................ 15 ad1941 i 2 c port ......................................................................... 15 rams and registers ....................................................................... 19 control port addressing ........................................................... 19 parameter ram contents ......................................................... 19 recommended program/parameter loading procedures .... 20 target/ sle w r a m ....................................................................... 20 safeload registers ....................................................................... 23 data capture registers .............................................................. 23 dsp core control register ....................................................... 24 ram configuration register ................................................... 25 control port read/write data formats .................................. 25 serial data input/output ports .................................................... 28 serial output control registers ............................................... 30 serial input control register .................................................... 30 initialization .................................................................................... 33 power-up sequence ................................................................... 33 setting master clock/pll mode .............................................. 33 volt age regu l ator ....................................................................... 33 outline dimensions ....................................................................... 35 ordering guide .......................................................................... 35 revision history 4/10rev. a to rev. b changes to voltage regulator section ..................................... 34 updated outline dimensions ................................................... 35 changes to ordering guide ...................................................... 35 4/05rev. 0 to rev. a added ad1941 .............................................................. universal changes to specifications ............................................................ 3 changes to pin function descriptions ...................................... 9 changes to features section...................................................... 11 changes to pin functions section ............................................ 13 addition of ad1940 spi port section ..................................... 15 added table 13 to table 16 ....................................................... 18 7/04revision 0: initial version
ad1940/ad1941 rev. b | page 3 of 3 6 specifications test conditions, unless otherwise noted. table 1. parameter conditions supply voltage (vdd) 2.5 v pll voltage (pll_vdd) 2.5 v output voltage (odvdd) 5.0 v invdd voltage 5.0 v ambient temperature 25c master clock input 3.072 mhz, 64 f s mode load capacitance 50 pf load current 1 ma input voltage, hi 2.4 v input voltage, lo 0.8 v digital i/o vdd = 2.25 v to 2.75 v. specifications measured across ? 40c to 125c (case). table 2. parameter comments min max unit input voltage, hi (v ih ) 2.1 v input voltage, lo (v il ) 0.8 v input leakage (i ih ) 10 a input leakage (i il ) 10 a high level output voltage (v oh ) odvdd = 4.5 v, i oh = 1 ma 3.9 v high level output voltage (v oh ) odvdd = 3.0 v, i oh = 1 ma 2.6 v low level output voltage (v ol ) odvdd = 4.5 v, i ol = 1 ma 1 0.4 v low level output voltage (v ol ) odvdd = 3.0 v, i ol = 1 ma 1 0.3 v input capacitance 5 pf 1 sda is measured with a 3 ma sink current. power table 3. parameter min typ max 1 unit supplies voltage 2.25 2.5 2.75 v digital current 92 155 2 ma pll current 3.5 8 ma digital current, reset 4.5 3 13 3 ma pll current, reset 3 8.5 ma dissipation operation, all supplies 238.8 mw reset, all supplies 10.8 mw 1 maximum specifications are measured across ? 40c to 125c (case) and across vdd = 2.25 v to 2.75 v. 2 measurement running a typical large program that writes to all 16 outputs with 0 db digital sine waves applied to all eight in puts. the end users program may differ. 3 the digital reset current is specified for the given test condit ions. this current scales with the input mclk rate, so higher input clocks draw more current while in reset.
ad1940/ad1941 rev. b | page 4 of 36 digital timing vdd = 2.25 to 2.75 v. specifications measured across C40c to 125c. table 4. digital timing 1 parameter mnemonic comments min max unit master clock, serial data ports, reset mclk period t mp 512 f s mode 36 244 ns mclk period t mp 384 f s mode 48 366 ns mclk period t mp 256 f s mode 73 488 ns mclk period t mp 64 f s mode 291 1953 ns mclk period t mp bypass mode 12 ns mclk duty cycle t mdc bypass mode 40 60 % bclk_in lo pulse width t bil 4 ns bclk_in hi pulse width t bih 2 ns lrclk_in setup t lis to bclk_in rising 12 ns lrclk_in hold t lih from bclk_in rising 0 ns sdata_inx setup t sis to bclk_in rising 3 ns sdata_inx hold t sih from bclk_in rising 2 ns lrclk_outx setup t los slave mode 2 ns lrclk_outx hold t loh slave mode 2 ns bclk_outx falling to lrclk_outx timing skew t ts 2 ns sdata_outx delay t sods slave mode, from bclk_outx falling 17 ns sdata_outx delay t sodm master mode, from bclk_outx falling 17 ns resetb lo pulse width t rlpw 10 ns spi port (ad1940) cclk pulse width lo t ccpl 1 intmclk (14) 2 ns cclk pulse width hi t ccph 1 intmclk (14) 2 ns clatch setup t cls to cclk rising 0 ns clatch hold t clh from cclk rising 2 intmclk + 4 (32) 2 ns clatch pulse width hi t clph 2 intmclk (28) 2 ns cdata setup t cds to cclk rising 0 ns cdata hold t cdh from cclk rising 2 intmclk + 2 (30) 2 ns cout delay t cod from cclk rising 4 intmclk +18 (74) 2 ns i 2 c port (ad1941) scl clock frequency f scl 400 khz scl low t scll 1.3 s scl high t sclh 0.6 s setup time (start condition) t scs relevent for repeated start condition 0.6 s hold time (start condition) t sch first clock generated after this period 0.6 s setup time (stop condition) t ssh 0.6 s data setup time t ds 100 ns sda and scl rise time t sr 300 ns sda and scl fall time t sf 300 ns bus-free time t bft between stop and start 1.3 s 1 all timing specifications are given for the default (i 2 s) states of the serial input control port and the serial output control ports. see table 37. 2 these specifications are based on the inte rnal master clock period in a specific appl ication. in normal operation, the master clock runs at 1,536 f s , so the internal master clock at f s = 48 khz has a 14 ns period. the values in parentheses are the timing values for f s = 48 khz.
ad1940/ad1941 rev. b | page 5 of 36 pll vdd = 2.25 to 2.75 v. specifications measured across C40c to 125c. table 5. parameter min typ max unit lock time 3 20 ms regulator vdd = 2.25 to 2.75 v. specifications measured across C40c to 125c. table 6. parameter min typ max unit vsense output voltage 2.25 2.5 2.68 v temperature range table 7. parameter min typ max unit functionality guaranteed C40 +105 c ambient C40 +125 c case
ad1940/ad1941 rev. b | page 6 of 3 6 absolute maximum ratings table 8. parameter min max unit vdd to dgnd C0.3 +3.0 v pll_ vdd to pgnd C0.3 +3.0 v od vdd to dgnd C0.3 +6.0 v invdd to dgnd odvdd +6.0 v digital inputs dgnd C 0.3 invdd + 0.3 v maximum junction temperature 135 c storage temperature range C65 +150 c soldering (10 sec) 300 c stresses above those listed under absolute maximum ratings may cause permanent damage to the device. this is a stress rating only and functional operation of the device at these or any other conditions above those indicated in the operational section of this specification is not implied. exposure to absolute maximum rating conditions for extended periods may affect device reliability. table 9. package characteristics parameter min typ max unit ja thermal resistance (junction- to-ambient) 72 c/w jc thermal resistance (junction- to-case) 19.5 c/w esd caution esd (electrostatic discharge) sensitive device. electrosta tic charges as high as 4000 v readily accumulate on the human body and test equipment and can discharge without de tection. although th is product features proprietary esd protection circuitry, permanent damage may occur on devices subjected to high energy electrostatic discharges. therefore, proper esd precautions are recommended to avoid performance degradation or loss of functionality.
ad1940/ad1941 rev. b | page 7 of 36 digital timing diagrams bclk_in lrclk_in sdata_inx left-justified mode lsb sdata_inx i 2 s-justified mode sdata_inx right-justified mode t bih msb msb-1 msb msb 8-bit clocks (24-bit data) 12-bit clocks (20-bit data) 14-bit clocks (18-bit data) 16-bit clocks (16-bit data) t lis t sis t sih t sih t sis t sis t sih t sis t sih t lih t bil 04607-0-013 figure 2. serial input port timing bclk_outx lrclk_outx sdata_outx left-justified mode lsb sdata_outx i 2 s-justified mode sdata_outx right-justified mode t bih msb msb-1 msb msb 8-bit clocks (24-bit data) 12-bit clocks (20-bit data) 14-bit clocks (18-bit data) 16-bit clocks (16-bit data) t los t sdds t sddm t sdds t sddm t sdds t sddm t lch t ts t bil 04607-0-014 figure 3. serial output port timing
ad1940/ad1941 rev. b | page 8 of 36 clatch cclk cdata cout t cls t cds t cdh t cod t ccph t ccpl t clh t clph 04607-0-015 figure 4. ad1940 spi port timing t tsch t sclh t sr t scll t st t ds sda sclk t tsch t ssh 04607-026 t scs figure 5. ad1941 i 2 c port timing mclk resetb t mp t rlpw 04607-0-016 figure 6. master clock and reset timing
ad1940/ad1941 rev. b | page 9 of 36 pin configurations and function descriptions 36 35 34 33 32 31 30 29 28 27 26 25 13 14 15 16 17 18 19 20 21 22 23 24 1 2 3 4 5 6 7 8 9 10 11 12 48 47 46 45 44 39 38 37 43 42 41 40 gnd bclk_out1 lrclk_out1 odvdd sdata_out3 sdata_out2 sdata_out1 vdd mclk reserved pll_vdd nc sdata_out0 odvdd bclk_out0 lrclk_out0 gnd vdd pin 1 indicator pll_ctrl0 pll_ctrl1 pll_ctrl2 pll_gnd ad1940 top view (not to scale) v d d s d a t a _ i n 1 s d a t a _ i n 2 s d a t a _ i n 3 c o u t c c l k c l a t c h c d a t a r e s e t b g n d sdata_in0 adr_sel gnd vref vdrive vsens e vs upply invdd sdata_ out7 sdata_ou t6 o dvdd sdata_ou t5 sd ata_out4 vdd 04607-0-002 lrclk_in bclk_in nc = no connect 36 35 34 33 32 31 30 29 28 27 26 25 13 14 15 16 17 18 19 20 21 22 23 24 1 2 3 4 5 6 7 8 9 10 11 12 48 47 46 45 44 39 38 37 43 42 41 40 gnd bclk_out1 lrclk_out1 odvdd sdata_out3 sdata_out2 sdata_out1 vdd mclk reserved pll_vdd i2c_filt_en sdata_out0 odvdd bclk_out0 lrclk_out0 gnd vdd pin 1 indicator pll_ctrl0 pll_ctrl1 pll_ctrl2 pll_gnd ad1941 top view (not to scale) vdd sdata _in1 s data_in2 sdata_ in3 sda scl nc nc resetb gnd sdata_in0 adr_sel gnd vref vdrive vsens e vs upply invdd sdata_ out7 sdata_ou t6 o dvdd sdata_ou t5 sd ata_out4 vdd 04607-0-011 lrclk_in bclk_in nc = no connect figure 7. 48-lead lqfp pin configuration, ad1940 figure 8. 48-lead lqfp pin configuration, ad1941 table 10. pin function descriptions pin o. ad1940 ad1941 i/o mnemonic description 1, 25, 37 1, 25, 37 vdd core power. 2 2 in mclk master clock input. 3 3 reserved this pin shou ld be connected to ground. 4 4 in pll_ctrl0 pll control 0. 5 5 in pll_ctrl1 pll control 1. 6 6 in pll_ctrl2 pll control 2. 7 7 pll_gnd pll ground. 8 8 pll_vdd pll power. 9 21, 22 nc no connect. 9 in i2c_filt_enb i 2 c filter enable, active low. 10 10 in lrclk_in left/right cloc k for serial or tdm data inputs. 11 11 in bclk_in bit clock fo r serial or tdm data inputs. 12, 24, 36, 48 12, 24, 36, 48 gnd digital ground. 13 13 vdd core power. 14 14 in sdata_in0 serial data input 0. 15 12 in sdata_in1 serial data input 1. 16 16 in sdata_in2/tdm_in1 seri al data input 2/tdm input 1. 17 17 in sdata_in3/tdm_in0 seri al data input 3/tdm input 0. 18 18 in adr_sel control port address select. 19 out cout spi data output. 20 in cclk clock for spi. 21 in clatch spi data latch.
ad1940/ad1941 rev. b | page 10 of 36 pin no. ad1940 ad1941 i/o mnemonic description 22 in cdata data input for spi. 19 in/out sda i 2 c serial data i/o. 20 in scl i 2 c clock. 23 23 in resetb reset the ad1940/ad1941. 26 26 in/out lrclk_out0 left/right clock output 0. 27 27 in/out bclk_out0 bit clock output 0. 28, 33, 40 28, 33, 40 odvdd power connection for output pins. 29 29 out sdata_out0/tdm_o0 serial data output 0/tdm (16- or 8-channel) output 0. 30 30 out sdata_out1 serial data output 1. 31 31 out sdata_out2 serial data output 2. 32 32 out sdata_out3 serial data output 3. 34 34 in/out lrclk_out1 left/right clock output 1. 35 35 in/out bclk_out1 bit clock output 1. 38 38 out sdata_out4/tdm_o1 serial da ta output 4./tdm (8-channel) output 1. 39 39 out sdata_out5 serial data output 5. 41 41 out sdata_out6 serial data output 6. 42 42 out sdata_out7/dcsout serial data output 7/data capture output. 43 43 invdd input voltage reference. 44 44 in vsupply voltage level input to regulator. usually 3.3 v or 5 v. 45 45 in vsense digital power level. should be tied to vdd. 46 46 out vdrive drive for external pnp transistor. 47 47 out vref reference level for voltage regulator.
ad1940/ad1941 rev. b | page 11 of 36 features the core of the ad1940/ad1941 is a 28-bit dsp (56-bit, double precision) optimized for audio processing. the parts program ram can be loaded with a custom program after power-up. signal processing parameters are stored in a 1024 location parameter ram, which is initialized on power-up by an internal boot rom. new values are written to the parameter ram using the control port. the values stored in the parameter ram control individual signal processing blocks, such as iir equali-zation filters, dynamics processors, audio delays, and mixer levels. a safeload feature allows parameters to be transparently updated without causing clicks on the output signals. the target/slew ram contains 64 locations and can be used as channel volume controls or for other parameter updates. these ram locations take a target value for a given parameter and ramp the current parameter value to the new value using a specified time constant and one of a selection of linear or logarithmic curves. the ad1940/ad1941 contain eight independent data capture circuits that can be programmed to tap the signal flow of the processor at any point in the dsp algorithm flow. six of these captured signals can be accessed by reading from the data capture registers through the control port. the remaining two data capture registers can be used to send any internal captured signal to a stereo digital output signal on pin sdata_out7 for driving external dacs or digital analyzers. the ad1940/ad1941 have a sophisticated control port that supports complete read/write capability of all memory locations. five control registers (core, ram configuration, serial output 0 to 7, serial output 8 to 15, and serial input) are provided to offer complete control of the chips configuration and serial modes. handshaking is included for ease of memory uploads/downloads. the ad1940 is spi-controlled and the ad1941 is controlled by an i 2 c bus. the ad1940/ad1941 have very flexible serial data input/output ports that allow glueless interconnection to a variety of adcs, dacs, general-purpose dsps, s/pdif receivers and trans-mitters, and sample rate converters. the ad1940/ad1941 can be configured in i 2 s, left-justified, right- justified, or tdm serial port-compatible modes. it can support 16, 20, and 24 bits in all modes. the ad1940/ad1941 accepts serial audio data in msb first and twos complement format. a master clock phase-locked loop (pll) allows the ad1940/ ad1941 to be clocked from a variety of different clock speeds. the pll can accept inputs of 64 f s , 256 f s , 384 f s , or 512 f s to generate the cores internal master clock. the ad1940/ad1941 operate from a single 2.5 v power supply. an on-board voltage regulator can be used to operate the chip with 3.3 v or 5 v supplies. they are fabricated on a single monolithic integrated circuit and are housed in 48-lead lqfp packages for operation over the C40c to +105c temperature range. 04607-0-003 28 28 dsp core data format: 5.23 (single precision) 10.46 (double precision) voltage regulator memory controllers control regisiter trap reg. safeload register serial control port mclk pll data memory 6k 28 target/slew ram 64 28 serial data/tdm input group pll mode select master clock input control port i/o group resetb program ram 1536 40 boot rom boot rom parameter ram 1024 28 coefficient rom 512 28 2 2 4 4 2 2 serial data/ tdm output group regulator group address select figure 9. block diagram
ad1940/ad1941 rev. b | page 12 of 36 pin functions table 10 shows the ad1940/ad1941s pin numbers, names, and functions. input pins have a logic threshold compatible with ttl input levels and may be used in systems with 3.3 v or 5 v logic. sdata_in0 sdata_in1 sdata_in2/tdm_in1 sdata_in3/tdm_in0 serial data/tdm inputs. the serial format is selected by writing to bits 2:0 of the serial input port control register. sdata_in2 and sdata_in3 are dual-function pins that can be set to a variety of standard 2-channel formats or to tdm mode. two of these four pins (sdata_in2 and sdata_in3) can be used as tdm inputs in either dual-wire 8-channel mode or single-wire 16-channel mode (tdm_o0 only). in dual-wire 8-channel mode, channels 0 to 7 are input on sdata_in3 and channels 8 to 15 on sdata_in2. in single-wire 16-channel mode, channels 0 to 15 are input on sdata_in2. see the serial data input/output ports section for further explanation. lrclk_in bclk_in left/right and bit clocks for timing the input data. these input clocks are associated with the sdata_in0 through sdata_in3 signals. the input port is always in a slave configuration. these pins also function as frame sync and bit clock for the input tdm stream. sdata_out0/tdm_o0 sdata_out1 sdata_out2 sdata_out3 sdata_out4/tdm_o1 sdata_out5 sdata_out6 sdata_out7/dcsout serial data/tdm/data capture outputs. these pins are used for serial digital outputs. for non-tdm systems, these eight pins can output 16 channels of digital audio, using a variety of standard 2-channel formats. they are grouped into two groups of four pins (pins 0 to 3 and pins 4 to 7); each group can be independently set to any of the available serial modes, allowing the ad1940/ad1941 to simultaneously communicate with two external devices with different serial formats. two of these eight pins (sdata_out0 and sdata_out4) can be used as tdm outputs in either dual-wire 8-channel mode or single-wire 16- channel mode (tdm_out0 only). in dual-wire 8-channel mode, channels 0 to 7 are output on sdata_out0 and channels 8 to 15 on sdata_out4. see the serial data input/output ports section for further explanation. sdata_out7 can also be used as a data capture output, as described in the data capture registers section. lrclk_out0 bclk_out0 output clocks. this clock pair is used for outputs sdata_out0 through sdata_out3. in slave mode, these clocks are inputs to the ad1940/ad1941. on power-up, these pins are set to slave mode to avoid conflicts with external master mode devices. lrclk_out1 bclk_out1 output clocks. this clock pair is used for outputs sdata_out4 through sdata_out7. in slave mode, these clocks are inputs to the ad1940/ad1941. on power-up, these pins are set to slave mode to avoid conflicts with external master mode devices. mclk master clock input. the ad1940/ad1941 uses a pll to generate the appropriate internal clock for the dsp core. an in-depth description of using the pll is found in the setting master clock/pll mode section. pll_ctrl0 pll_ctrl1 pll_ctrl2 pll mode control pins. the functionality of these pins is described in the setting master clock/pll mode section. cdata (ad1940) serial data input for the spi control port. cout (ad1940) serial data output for the spi port. this is used for reading back registers and memory locations. it is three-stated when an spi read is not active. cclk (ad1940) spi bit clock. this clock may either run continuously or be gated off between spi transactions. clatch (ad1940) spi latch signal. this must go low at the beginning of an spi transaction and high at the end of a transaction. each spi transaction may take a different number of cclks to complete, depending on the address and read/write bit that are sent at the beginning of the spi transaction. scl (ad1941) i 2 c clock. this pin is always an input because the ad1941 cannot act as a master on the i 2 c bus. the line connected to this pin should have a 2 k pull-up resistor on it. sda (ad1941) i 2 c serial data. the data line is bidirectional. the line connected to this pin should have a 2 k pull-up resistor on it.
ad1940/ad1941 rev. b | page 13 of 36 i 2 c_filt_enb (ad1941) i 2 c spike filter enable/disable. this enables (active low) the i 2 c spike filter, which is used to prevent noise or glitches on the i 2 c bus from improperly affecting the ad1941. adr_sel address select. this pin selects the address for the ad1940/ ad1941s communication with the control port. this allows two ad1940s to be used with a single clatch signal or two ad1941s to be used on the same i 2 c bus. resetb active-low reset signal. after resetb goes high, the ad1940/ad1941 goes through an initialization sequence where the program and parameter rams are initialized with the contents of the on-board boot roms. all registers are set to 0, and the data rams are also set to 0. the initialization is com- plete after 8,192 internal mclk cycles (referenced to the rising edge of resetb), which corresponds to 1,366 external mclk cycles if the part is in 256 f s mode. new values should not be written to the control port until the initialization is complete. vref voltage reference for regulator. this pin is driven by an internal 1.15 v reference voltage. vdrive drive for external transistor. the base of the voltage regulators external pnp transistor is driven from this pin. vsense digital power level. the voltage level on the vdd pins is sensed on vsense. vsense should be tied to vdd. vsupply main supply voltage level. this pin is tied to the boards main voltage supply. this is usually 3.3 v or 5 v. vdd (4) digital vdd for core. 2.5 v nominal. gnd (4) digital ground. pll_vdd supply for ad1940/ad1941 pll. 2.5 v nominal. pll_gnd pll ground. odvdd (3) vdd for all digital outputs. the high levels of the digital output signals are set on this pin. the voltage can range from 2.5 v to 5.0 v. invdd peak input voltage level. the highest voltage level that the input pin sees should be connected to invdd. this is to protect the chip inputs from voltage overstress. the voltage on this pin must always be at or above the level of odvdd.
ad1940/ad1941 rev. b | page 14 of 36 signal processing overview the ad1940/ad1941 are designed to provide all signal processing functions commonly used in stereo or multichannel playback systems. the signal processing flow is set by using the adi-supplied software, which allows graphical entry and real- time control of all signal processing functions. many of the signal processing functions are coded using full, 56-bit double-precision arithmetic. the input and output word lengths are 24 bits. four extra headroom bits are used in the processor to allow internal gains up to 24 db without clipping. additional gains can be achieved by initially scaling down the input signal in the signal flow. the signal processing blocks can be arranged in a custom pro- gram that can be loaded to the ad1940/ad1941s ram. the available signal processing blocks are explained in the following sections. numeric formats it is common in dsp systems to use a standardized method of specifying numeric formats. fractional number systems are specified by an a.b format, where a is the number of bits to the left of the decimal point and b is the number of bits to the right of the decimal point. the ad1940/ad1941 use the same numeric format for both the coefficient values (stored in the parameter ram) and the signal data values. the format is as follows: numerical format: 5.23 range: C16.0 to (+16.0 ? 1 lsb) examples: 1000 0000 0000 0000 0000 0000 0000 = C16.0 1110 0000 0000 0000 0000 0000 0000 = C4.0 1111 1000 0000 0000 0000 0000 0000 = C1.0 1111 1110 0000 0000 0000 0000 0000 = C0.25 1111 1111 1111 1111 1111 1111 1111 = (1 lsb below 0.0) 0000 0000 0000 0000 0000 0000 0000 = 0.0 0000 0010 0000 0000 0000 0000 0000 = 0.25 0000 1000 0000 0000 0000 0000 0000 = 1.0 0010 0000 0000 0000 0000 0000 0000 = 4.0 0111 1111 1111 1111 1111 1111 1111 = (16.0 C 1 lsb). the serial port accepts up to 24 bits on the input and is sign- extended to the full 28 bits of the core. this allows internal gains of up to 24 db without encountering internal clipping. a digital clipper circuit is used between the output of the dsp core and the serial output ports (see figure 10 ). this clips the top four bits of the signal to produce a 24-bit output with a range of 1.0 (minus 1 lsb) to C1.0. 4-bit sign extension data in serial port 1.23 5.23 signal processing (5.23 format) digital clipper 5.23 1.23 04607-0-005 figure 10. numeric precision and clipping structure programming on power-up, the ad1940/ad1941s default program passes the unprocessed input signals to the outputs ( figure 28 ) but the outputs are muted by default (see power-up sequence section). there are 1,536 instruction cycles per audio sample, resulting in an internal clock rate of 73.728 mhz (for f s = 48 khz). this dsp runs in a stream-oriented manner, meaning all 1,536 instruc- tions are executed each sa mple period. the ad1940/ad1941 may also be set up to accept double- or quad-speed inputs by reducing the number of instructions/sample, which can be set in the core control register. the part can be programmed easily using graphical tools pro- vided by analog devices. no knowledge of writing dsp code is needed to program this part. the user simply can connect graphical blocks such as biquad filters, dynamics processors, mixers, and delays in a signal flow schematic, compile the design, and load the program and parameter files into the ad1940/ad1941s program ram through the control port. signal processing blocks available in the provided libraries include ? single- and double-precision biquad filters ? mono and multichannel dynamics processors ? mixers and splitters ? tone and noise generators ? first-order filters ? fixed and variable gain ? rms look-up tables ? loudness ? delay ? stereo enhancement (phat stereo ? ) ? dynamic bass boost ? interpolators and dececimators more blocks are always in development. analog devices also provides proprietary and third-party algorithms for applications such as matrix decoding, bass enhancement, and surround virtualizers. contact an adi sales representative for infor- mation about licensing these algorithms.
ad1940/ad1941 rev. b | page 15 of 36 control port overview the ad1940/ad1941 have many different control options that can be set through an spi or i 2 c interface. the ad1940 uses a 4-wire spi control port and the ad1941 uses a 2-wire i 2 c bus control port. most signal processing parameters are controlled by writing new values to the parameter ram using the control port. other functions, such as mute and input/output mode control, are programmed by writing to the control registers. the control port is capable of full read/write operation for all of the memories and registers. all addresses may be accessed in both a single-address mode or a burst mode. a control word consists of the chip address, the register/ram subaddress, and the data to be written. the number of bytes per word depends on the type of data that is written. the first byte of a control word (byte 0) contains the 7-bit chip address plus the r/w bit. the next two bytes (bytes 1 and 2) form the subaddress of the memory or register location within the ad1940/ad1941. this subaddress needs to be two bytes because the memories within the ad1940/ad1941 are directly addressable, and their sizes exceed the range of single-byte addressing. all subsequent bytes (bytes 3, 4, etc.) contain the data, such as control port, program, or parameter data. the exact formats for specific types of writes are shown in table 26 to table 35 . the ad1940/ad1941 have several mechanisms for updating signal processing parameters in real time without causing pops or clicks. in cases where large blocks of data need to be down- loaded, the output of the dsp core can be halted (using bit 9 of the core control register), new data loaded, and then restarted. this is typically done during the booting sequence at start-up or when loading a new program into ram. in cases where only a few parameters need to be changed, they can be loaded without halting the program. to avoid unwanted side effects while loading parameters on the fly, the sigmadsp provides the safeload registers. the safeload registers can be used to buffer a full set of parameters (for example, the five coefficients of a biquad) and then transfer these parameters into the active program within one audio frame. the safeload mode uses internal logic to prevent contention between the dsp core and the control port. ad1940 spi port the spi port uses a 4-wire interface, consisting of clatch, cclk, cdata, and cout signals. the clatch signal goes low at the beginning of a transaction and high at the end of a transaction. the cclk signal latches cdata on a low-to-high transition. cout data is shifted out of the ad1940/ad1941 on the falling edge of cclk and should be clocked into the receiving device, such as a microcontroller, on cclks rising edge. the cdata signal carries the serial input data and the cout signal is the serial output data. the cout signal remains three-stated until a read operation is requested. this allows other spi-compatible peripherals to share the same readback line. all spi transactions follow the same basic format, shown in table 11 . a timing diagram is shown in figure 4 . all data written should be msb first. table 11. generic spi word format byte 0 byte 1 byte 2 byte 3 byte 4, etc. chip_adr [6:0], r/ w 0000, subadr [11:8] subadr [7:0] data data chip address r/ w the first byte of an spi transaction includes the 7-bit chip address and a r/ w bit. the chip address is set by the adr_sel pin. this allows two ad1940s to share a clatch signal, yet operate independently. when adr_sel is low, the chip address is 0000000; when it is high, the address is 0000001. the lsb of this first byte determines whether the spi transaction is a read (logic level 1) or a write (logic level 0). subaddress the 12-bit subaddress word is decoded into a location in one of the memories or registers. this subaddress is the location of the appropriate ram location or register. data bytes the number of data bytes varies according to the register or memory being accessed. in burst write mode, an initial subaddress is given followed by a continuous sequence of data for consecutive memory/register locations. the detailed data format diagram for continuous mode operation is given in the control port read/write data formats section. a sample timing diagram for a single spi write operation to the parameter ram is shown in figure 11 . a sample timing diagram of a single spi read operation is shown in figure 12 . the cout pin goes from three-state to driven at the beginning of byte 3. in this example, bytes 0 to 2 contain the addresses and r/w bit, and subsequent bytes carry the data. ad1941 i 2 c port the ad1941 supports a 2-wire serial (i 2 c-compatible) micro- processor bus driving multiple peripherals. two pins, serial data (sda) and serial clock (scl), carry information between the ad1941 and the system i 2 c master controller. the ad1941 is always a slave on the i 2 c bus, which means that it never initiates a data transfer. each slave device is recognized by a unique address. the ad1941 has four possible slave addresses, two for writing operations and two for reading. these are unique addresses for the device and are illustrated in table 12 . the lsb
ad1940/ad1941 rev. b | page 16 of 36 of the byte sets either a read or write operation; logic level 1 corresponds to a read operation and logic level 0 corresponds to a write operation. the seventh bit of the address is set by tying the adr_sel pin of the ad1941 to logic level 0 or logic level 1. the ad1941 i 2 c port uses a spike filter that can be enabled or disabled by the i2c_filt_enb pin. enabling this filter guar- antees that all isolated spikes, both positive and negative, less than 50 ns wide are removed from the i 2 c signal. the filter is active when the i2c_filt_enb pin is low and is disabled when the pin is high. typically, the largest spike that is filtered is 67 ns wide. table 12. ad1941 i 2 c addresses adr_sel r/w slave address 0 0 0x28 0 1 0x29 1 0 0x2a 1 1 0x2b addressing initially, all devices on the i 2 c bus are in an idle state, which is where the devices monitor the sda and scl lines for a start condition and the proper address. the i 2 c master initiates a data transfer by establishing a start condition, defined by a high-to-low transition on sda while scl remains high. this indicates that an address/data st ream will follow. all devices on the bus respond to the start condition and read the next byte (7-bit address + r/w bit) msb first. the device that recognizes the transmitted address responds by pulling the data line low during the ninth clock pulse. this ninth bit is known as an acknowledge bit. all other devices withdraw from the bus at this point and return to the idle condition. the r/w bit determines the direction of the data. a logic 0 on the lsb of the first byte means the master writes information to the peripheral. a logic 1 on the lsb of the first byte means the master reads information from the peripheral. a data transfer takes place until a stop condition is encountered. a stop condition occurs when sda transitions from low to high while scl is held high. figure 13 shows the timing of an i 2 c write. burst mode addressing, where the subaddresses are automati- cally incremented at word boundaries, can be used for writing large amounts of data to contiguous memory locations. this increment happens automatically if a stop condition is not encountered after a single-word write. the registers and memories in the ad1941 range in width from one to five bytes, so the autoincrement feature knows the mapping between sub- addresses and the word length of the destination register (or memory location). a data transfer is always terminated by a stop condition. stop and start conditions can be detected at any stage during the data transfer. if these conditions are asserted out of sequence with normal read and write operations, these cause an immediate jump to the idle condition. during a given scl high period, the user should only issue one start condition, one stop condition, or a single stop condition followed by a single start condition. if an invalid subaddress is issued by the user, the ad1941 does not issue an acknowledge and returns to the idle condition. if the user exceeds the highest subaddress while in autoincrement mode, one of two actions are taken. in read mode, the ad1941 outputs the highest subaddress register contents until the master device issues a no-acknowledge, indicating the end of a read. a no-acknowledge condition is where the sda line is not pulled low on the ninth clock pulse on scl. if the highest subaddress location is reached while in write mode, the data for the invalid byte is not loaded into any subaddress register, a no-acknowledge is issued by the ad1941 and the part returns to the idle condition. i 2 c read and write operations table 13 shows the timing of a single-word write operation. every ninth clock, the ad1941 issues an acknowledge by pulling sda low. table 14 shows the timing of a burst mode write sequence. this figure shows an example where the target destination registers are two bytes. the ad1941 knows to increment its subaddress register every two bytes because the requested subaddress corresponds to a register or memory area with a 2-byte word length. the timing of a single word read operation is shown in table 15 . note that the first r/ w bit is still a 0, indicating a write opera-tion. this is because the subaddress still needs to be written in order to set up the internal address. after the ad1941 acknow-ledges the receipt of the subaddress, the master must issue a repeated start command followed by the chip address byte with the r/ w set to 1 (read). this causes the ad1941s sda to turn around and begin driving data back to the master. the master then responds every ninth pulse with an acknowledge pulse to the ad1941. table 16 shows the timing of a burst mode read sequence. this figure shows an example where the target read registers are two bytes. the ad1941 knows to increment its subaddress register every two bytes because the requested subaddress corresponds to a register or memory area with word lengths of two bytes. other address ranges may have a variety of word lengths ranging from one to five bytes; the ad1941 always decodes the subaddress and sets the autoincrement circuit so that the address increments after the appropriate number of bytes.
ad1940/ad1941 rev. b | page 17 of 36 clatch cclk cdata byte 0 msb lsb byte 1 byte 2 byte 3 04607-0-006 figure 11. spi write format (single write mode) 04607-0-007 clatch cclk cdata cout byte 0 byte 1 hi-z data data byte 2 data hi-z figure 12. spi read format (single read mode) r/w 0000 adr sel 00 04607-027 ack. by ad1941 sck sda sck (continued) sda (continued) frame 2 subaddress byte 1 ack. by ad1941 frame 1 chip address byte 1 start by master ack. by ad1941 ack. by ad1941 stop by master frame 4 data byte 1 frame 3 subaddress byte 2 figure 13. ad1941 i 2 c write format
ad1940/ad1941 rev. b | page 18 of 36 r/w sck adr sel r/w adr sel 04607-028 sda start by master ack. by ad1941 ack. by ad1941 frame 2 subaddress byte 1 frame 1 chip address byte 1 frame 3 subaddress byte 2 frame 4 chip address byte ack. by ad1941 repeated start by master sck (continued) sda (continued) sck stop by master ack. by master frame 6 read data byte 2 ack. by master (continued) sda (continued) ack. by ad1941 frame 5 read data byte 1 figure 14. ad1941 i 2 c read format table 13. single word i 2 c write s chip address, r/ w = 0 as subaddress high as subaddress low as data byte 1 as data byte 2 as data byte n p table 14. burst mode i 2 c write s chip address, r/ w = 0 as subaddress high as subaddress low as data word 1, byte 1 as data word 1, byte 2 as data word 2, byte 1 as data word 2, byte 2 as p table 15. single word i 2 c read s chip address, r/ w = 0 as subaddress high as subaddress low as s chip address, r/ w = 1 as data byte 1 am data byte 2 am data byte n p table 16. burst mode i 2 c read s chip address, r/ w = 0 as subaddress high as subaddress low as s chip address, r/ w = 1 as data word 1, byte 1 am data word 1, byte 2 am p s - start bit p - stop bit am - acknowledge by master as - acknowledge by slave
ad1940/ad1941 rev. b | page 19 of 36 rams and registers table 17. control port addresses spi/ i 2 c subaddress register name read/write word length 0C1023 (0x0000C0x03ff) parameter ram write: 4 bytes, read: 4 bytes 1024C2559 (0x0400C0x09ff) program ram write: 5 bytes, read: 5 bytes 2560C2623 (0x0a00C0x0a3f) target/slew ram write: 5 bytes, read: n/a 2624C2628 (0x0a40C0x0a44) parameter ra m data safeload registers 0C4 write: 5 bytes, read: n/a 2629C2633 (0x0a45C0x0a49) parameter ram indirect address sa feload registers 0C4 write: 2 bytes, read: n/a 2634C2639 (0x0a4aC0x0a4f) data capture registers 0C5 (control port readback) write: 2 bytes, read: 3 bytes 2640C2641 (0x0a50C0x0a51) data capture registers (dig ital output) write: 2 bytes, read: n/a 2642 (0x0a52) dsp core control register write: 2 bytes, read: 2 bytes 2643 (0x0a53) ram configuration register write: 1 byte, read: 1 byte 2644 (0x0a54) serial output control register 1 (c hannels 0C7) write: 2 bytes, read: 2 bytes 2645 (0x0a55) serial output control register 2 (c hannels 8C15) write: 2 bytes, read: 2 bytes 2646 (0x0a56) serial input control register write: 1 byte, read: 1 byte table 18. ram read/write modes memory size subaddress range read write burst mode available write modes parameter ram 1024 28 0C1023 (0x0000C0x03ff) yes yes yes direct write 1 or safeload write program ram 1536 40 1024C2559 (0x0400C0x09ff) yes yes yes direct write 1 target/slew ram 64 34 2560C2623 (0x0a00C0x0a3f) no yes (via safeload) yes 2 safeload write 1 dsp core should be shut down first to avoid clicks/pops. 2 the target/slew rams need to be written through the safeload registers. safeload writes may be done in either single write mod e or burst mode. control port addressing table 17 shows the addressing of the ad1940/ad1941s ram and register spaces. the address space encompasses a set of registers and three rams: one each for holding signal processing parameters, holding the program instructions, and ramping parameter values. the program and parameter rams are initialized on power-up from on-board boot roms. table 18 shows the sizes and available writing modes of the parameter, program, and target/slew rams. parameter ram contents the parameter ram is 28 bits wide and occupies addresses 0 to 1023. the parameter ram is initialized to all 0s on power-up. the data format of the parameter ram is twos complement 5.23. this means that the coefficients may range from 16.0 (minus 1 lsb) to C16.0, with 1.0 represented by the binary word 0000 1000 0000 0000 0000 0000 0000. options for parameter updates the parameter ram can be written and read using one of the two following methods. 1. direct read/write . this method allows direct access to the program and parameter rams. this mode of operation is normally used during a complete new load of the rams, using burst mode addressing. the clear register bit in the core control register should be set to 0 using this mode to avoid any clicks or pops in the outputs. ote that it is also possible to use this mode during live program eecution, but since there is no handshaking between the core and the control port, the parameter ram is unavailable to the dsp core during control writes, resulting in clicks and pops in the audio stream. 2. safeload write. p to five safeload registers can be loaded with parameter ram address/data. the data is then transferred to the reuested address when the ram is not busy. this method can be used for dynamic updates while live program material is playing through the ad1940/ ad1941. for eample, a complete update of one biuad section can occur in one audio frame, while the ram is not busy. this method is not available for writing to the program ram or control registers. the following sections discuss these two options in more detail.
ad1940/ad1941 rev. b | page 20 of 36 recommended program/parameter loading procedures when writing large amounts of data to the program or para- meter ram in direct write mode, the processor core should be disabled to prevent unpleasant noises from appearing at the audio output. the ad1940/ad1941 contain several mechanisms for disabling the core. if the loaded program does not use the target/slew ram as the main system volume control (for example, the default power-up program), 1. assert bit 9 (low to assertdefault setting) and bit 6 (high to assert) of the core control register. this zeroes the accumulators, the serial output registers, and the serial input registers. 2. fill the program ram using burst mode writes. 3. fill the parameter ram using burst mode writes. 4. assert bit 7 of the core control register to initiate a data- memory clear sequence. wait at least 100 s for this sequence to complete. this bit is automatically cleared after the operation is complete. 5. deassert bit 9 and bit 6 of the core control register to allow the core to begin normal operation if the loaded program does use the target/slew ram as the main system volume control, 1. assert bit 12 of the core control register. this begins a volume ramp down, with a time constant determined by the upper bits of the target ram. wait for this ramp down to complete (the user may poll bit 13 of the core control register, or simply wait for a given amount of time). 2. assert bit 9 (low to assert) and bit 6 (high to assert) of the core control register. this zeroes the accumulators, the serial output registers, and the serial input registers. 3. fill the program ram using burst mode writes. 4. fill the parameter ram using burst mode writes. 5. assert bit 7 of the core control register to initiate a data- memory clear sequence. wait at least 100 s for this sequence to complete. this bit is automatically cleared after the operation is complete. 6. deassert bit 9 and bit 6 of the core control register. 7. if the newly loaded program also uses the target/slew ram, deassert bit 12 of the core control register to begin a volume ramp up procedure. target/slew ram the target/slew ram is a bank of 64 ram locations, each of which can be set to autoramp from one value to a desired final value in one of four modes. summary the target/slew ram is used by the dsp when a program is loaded into the program ram that uses one or more locations in the slew ram to access internal coefficient data. typically, these coefficients are used for volume controls or smooth cross- fading effects, but may be used to update any value in the para- meter ram. each of the 64 locations in the slew ram are linked to corresponding locations in the target ram. when a new value is written to the target ram using the control port, the corresponding slew ram location begins to ramp toward the target. the value is updated once per audio frame (lrclk period). the target ram is 34 bits wide. the lower 28 bits contain the target data in 5.23 format for the linear and exponential (constant db and rc type) ramp types. for constant time ramping, the lower 28 bits contain 16 bits in 2.14 format and 12 bits to set the current step. the upper six bits are used to determine the type and speed of the ramp envelope in all modes. the format of the data write for linear and exponential formats is shown in table 19 . table 20 shows the data write format for the constant time ramping. data can only be written to the target/slew ram using the safeload registers as described in the safeload registers section. a mute slew ram bit is included in the core control register to simultaneously set all the slew ram target values to 0. this is useful for implementing a global multichannel mute. when this bit is deasserted, all slew ram values return to their original premuted states. table 19. linear, constant db, and rc type ramp data write byte 0 byte 1 bytes 2C4 000000, curve_type [1:0] time_const [3:0], data [27:24] data [23:0] table 20. constant time ramp data write byte 0 byte 1 bytes 2C4 000000, curve_type [1:0] update_step [0], #_of_steps [2:0], data [15:12] data [11:0], reserved [11:0]
ad1940/ad1941 rev. b | page 21 of 36 the four ramping curve types are ? linearvalue slews to target using a fixed step size. ? constant dbvalue slews to target using the current value to calculate the step size. the resulting curve has a constant rise and decay when measured in db. ? rc typevalue slews to target using the difference between target and current values to calculate the step size, producing a simple rc type curve for rising and falling. ? constant timevalue slews to the target in a fixed number of steps in a linear fashion. the control port mute has no affect on this type. table 21. target/slew ram ramp type settings setting ramp type 00 linear 01 constant db 10 rc type 11 constant time the following sections detail how the control port writes to the target/slew ram to control the time constant and ramp type parameters. ramp types 1 to 3: linear, constant db, rc type (34-bit write) the target word for the first three ramp types is broken up into three parts. the 34-bit command is written with six leading 0s to extend the data write to five bytes. the parts of the target ram write are the following: ? ramp type (2 bits) ? time constant (4 bits) 0000 = fastest 1111 = slowest ? data (28 bits): 5.23 format ramp type 4constant time (34-bit write) the target word for the constant time ramp type is written in five parts, with the 34-bit command again written with six leading zeros to extend the data write to five bytes. the parts of the constant time target ram write are the following: ? ramp type (2 bits). ? update step (1 bit). set to 1 when new target is loaded to trigger step value update. value is automatically reset after the step value is updated. ? number of steps (3 bits). the number of steps that it takes to slew to the target value is set by these three bits, with the number of steps equal to 2 3-bit setting + 6 . 000 = 64 001 = 128 010 = 256 011 = 512 100 = 1024 101 = 2048 110 = 4096 111 = 8196 ? data (16 bits). 2.14 format. ? reserved (12 bits). when writing to the ram, these bits should all be set to 0. target and slew ram initialization on reset, the target/slew ram initializes to preset values. the target ram initializes to a linear ramp type with a time constant of 5 and the data set to 1.0. the slew ram initializes to a value of 1.0. these defaults give a full-scale (1.0 to 0.0) ramp time of 21.3 ms. linear update math linear math is the addition or subtraction of a constant value (step). the equation to describe this step size is () 20 10 13 52 2 ? = tconst step the result of the equation is normalized to a 5.23 data format. this gives a time constant range from 6.75 ms to 213.4 ms (C60 db relative to 0 db full scale). an example of this kind of update is shown in figure 15 and figure 16 . all slew ram figure examples, except the half-scale constant time ramp plot, show an increasing or decreasing ramp between C80 db and 0 db (full scale). all figures except the constant time plots ( figure 19 and figure 21 ) use a time constant of 0x7 (0x0 being the fastest and 0xf being the slowest). time (ms) output level (v) 1 0.4 0.6 0.8 0.2 0 ?0.4 ?0.2 ?1 ?0.8 ?0.6 01 02 03 0 04607-0-017 figure 15. slew ram?linear update increasing ramp
ad1940/ad1941 rev. b | page 22 of 36 ?1.0 ?0.8 ?0.6 ?0.4 ?0.2 0 0.2 0.4 0.6 0.8 1.0 35 25 15 5 time (ms) output level (v) 04607-029 20 10 03 0 figure 16. slew ramlinear update decreasing ramp constant db and rc type (exponential) update math exponential math is accomplished by shifts and adds with a range from 6.1 ms to 1.27 s (C60 db relative to 0 db full scale). when the ramp type is set to 01 (constant db), each step size is set to the current value in the slew data. when the ramp type bits are set to 10 (rc type), the step sizes are equal to the difference between the values in the target ram and slew ram. figure 17 and figure 18 show examples of this type of target/slew ram ramping. a decreasing ramp of both the constant db and rc type ramps is a mirror image of the constant db increasing ramp, and is show in figure 19 . 04607-0-018 time (ms) output level (v) 1 0.8 0.6 0.4 0.2 0 ?0.6 ?0.4 ?0.2 ?0.8 ?1 01 0 52 0 15 30 25 35 figure 17. slew ramconstant db update increasing ramp 04607-0-019 time (ms) output level (v) 1 0.8 0.6 0.4 0.2 0 ?0.6 ?0.4 ?0.2 ?0.8 ?1 35 25 15 5 20 10 03 0 figure 18. slew ramrc type update increasing ramp ?1.0 ?0.8 ?0.6 ?0.4 ?0.2 0 0.2 0.4 0.6 0.8 1.0 time (ms) output level (v) 04607-030 35 25 15 5 20 10 03 0 figure 19. slew ramconstant db and rc type update decreasing ramp, full scale 04607-0-020 time (ms) output level (v) 1 0.8 0.6 0.4 0.2 0 ?0.6 ?0.4 ?0.2 ?0.8 ?1 35 25 15 5 20 10 03 0 figure 20. slew ramconstant time update increasing ramp, full scale
ad1940/ad1941 rev. b | page 23 of 36 04607-0-021 time (ms) output level (v) 1 0.8 0.6 0.4 0.2 0 ?0.6 ?0.4 ?0.2 ?0.8 ?1 35 25 15 5 20 10 03 0 figure 21. slew ramconstant time update increasing ramp, half scale ?1.0 ?0.8 ?0.6 ?0.4 ?0.2 0 0.2 0.4 0.6 0.8 1.0 time (ms) output level (v) 04607-031 35 25 15 5 20 10 03 0 figure 22. slew ramconstant time update decreasing ramp, full scale constant time update math constant time math is accomplished by adding a step value that is calculated after each new target is loaded. the equation for this step size is step = ( target d ata ? slew data )/( number of steps ) figure 20 shows a plot of the target/slew ram operating in constant time mode. for this example, 128 steps are used to reach the target value. this type of ramping takes a fixed amount of time for a given number of steps, regardless of the difference in the initial state and the target value. figure 21 shows a plot of a constant time ramp from C80 db to C6 db (half scale) using 128 steps. you can see that the ramp takes the same amount of time as the previous ramp from C80 db to 0 db. a constant time decreasing ramp plot is shown in figure 21 . safeload registers many applications require real time control of signal processing parameters, such as filter coefficients, mixer gains, multichannel virtualizing parameters, or dynamics processing curves. to prevent instability from occurring, all of the parameters of a biquad filter must be updated at the same time. otherwise, the filter could execute for one or two audio frames with a mix of old and new coefficients. this mix could cause temporary instability, leading to transients that could take a long time to decay. to eliminate this problem, the ad1940/ad1941 load a set of 10 registers in the control port (five for 28-bit parameters, and another five for indirectly addressing the target/slew rams) with the desired parameter or target/slew ram address and data. five registers are used because a biquad filter uses five coefficients and it is desirable to be able to do a complete biquad update in one transaction. the safeload registers can be used to update either the parameter ram or target/slew ram values. once these registers are loaded, the appropriate initiate safe transfer bit (there are separate bits for parameter and target/slew loads) in the core control register should be set to initiate the loading into ram. program lengths should be limited to 1,531 cycles (1,536 ? 5) to ensure that the sigmadsp is able to perform the safeloads. it can be guaranteed that the safeload will have occurred within one lrclk period (21 s at f s = 48 khz) of the initiate safe transfer bit being set. the safeload logic automatically sends only those safeload regis- ters that have been written to since the last safeload operation. for example, if only two parameters are to be sent, only two of the five safeload registers must be written to. when the initial safe transfer bit (in the core control register) is asserted, only those two registers are sent; the other three registers are not sent to the ram and can still hold old or invalid data. table 22. data capture control registers (2634C2641) register bits function 12:2 11-bit program counter address 1:0 register select 00 = mult_x_input 01 = mult_y_input 10 = mac_output 11 = accum_fback data capture registers the ad1940/ad1941s data capture feature allows the data at any node in the signal processing flow to be sent to one of six control port-readable registers or to a serial output pin. this can be used to monitor and display information about internal signal levels or compressor/limiter activity. the ad1940/ad1941 contain six independent control port- readable data capture registers, and two digital output capture registers. the digital output registers are output on sdata_out7 when the data capture serial out enable bit (bit 14) is set in serial output control register 2. these reg- isters are useful when debugging the signal processing flow. for each of the data capture registers, a capture count and a register select must be set. the capture count is a number between 0 and 1,535 that corresponds to the program step number where the capture occurs. the register select field programs one of four registers in the dsp core that is transferred to the data capture register when the program
ad1940/ad1941 rev. b | page 24 of 36 counter equals the capture count. the register select field selections are shown in tabl e 23 . table 23. data capture output register select setting register 00 multiplier x input (mult_x_input) 01 multiplier y input (mult_y_input) 10 multiplier-accumulator output (mac_out) 11 accumulator feedback (accum_fback) the capture count and register select bits are set by writing to one of the eight data capture registers at the following register addresses: 2634: control port data capture setup register 0 2635: control port data capture setup register 1 2636: control port data capture setup register 2 2637: control port data capture setup register 3 2638: control port data capture setup register 4 2639: control port data capture setup register 5 2640: digital out data capture setup register 0 2641: digital out data capture setup register 1 the captured data is in 5.19 tw os complement data format for all eight register select fields. the four lsbs are truncated from the internal 5.23 data-word. the data that must be written to set up the data capture is a concatenation of the 11-bit program count index with the 2-bit register select field. the capture count and register select values that correspond to the desired point to be monitored in the signal processing flow can be found in a file output from the program compiler. the capture registers can be accessed by reading from locations 2634 to 2639 (for control port capture registers). the format for reading and writing to the data capture registers can be seen in table 32 and table 33 . dsp core control register the controls in this register set the operation of the ad1940/ ad1941s dsp core. bits 6 to 9 can be set to initiate a shutdown of the core. the output is muted when this is performed, so it is best to first assert the mute slew ram bit (if slew ram loca- tions are used as volume controls in the program) to avoid a click or pop when shutdown is asserted. slew ram muted (bit 13) this bit is set to 1 when the slew ram mute operation has been completed. this bit is read-only and is automatically cleared by reading. mute slew ram, all locations (bit 12) setting this bit to 1 initiates a mute of all 64 slew ram locations. when reset to 0, all ram locations return to their previous state. this bit is only functional if slew ram locations are used in the custom program design. keep in mind that the ad1940/ad1941s default program does not use any slew ram volume controls, so this bit has no effect in that case. the mute operation is identical to writing all 0s to the data portion of the target ram, and therefore the time constant and linear/ exponential curve selection is determined by the bits that have been previously written to the high bits of the target ram. table 24. dsp core control register (2642) register bits function 15:14 reserved 13 slew ram muted (read-only) 12 mute slew ram, all locations 11 reserved, set to 0 10 use serial out lrclk for output latch 9 clear internal registers to all 0s, active low 8 force multiplier to 0 7 inititalize data memory with 0s 6 mute serial input port 5 initiate safe transfer to target ram 4 initiate safe transfer to parameter ram 3:2 input serial port to sequencer sync 00 = lrclk 01 = lrclk/2 10 = lrclk/4 11 = lrclk/8 1:0 program length 00 = 1536 01 = 768 10 = 384 11 = 192 use serial out lrclk for output latch (bit 10) normally, data is transferred from the dsp core to the serial output registers at the end of each program cycle. in some cases (for example, when the output sample rate is set to some multiple of the input sampling rate), it is desirable to transfer the internal core data multiple times during a single input audio sample period. setting this bit to 1 allows the output lrclk signal to control this data transfer rather than the internal end- of-sequence signal. operation in this mode may require custom assembly language coding in the adi graphical tools. clear registers to all zeros (bit 9) setting this bit to 0 sets the contents of the accumulators and serial output registers to 0. like the other register bits, this one powers up to 0. this means the ad1940/ad1941 power up in clear mode and do not pass a signal until a 1 is written to this bit. this is intended to prevent noise from inadvertently occurring during the power-up sequence. force multiplier to zero (bit 8) when this bit is set to 1, the input to the dsp multiplier is set to 0, which results in the multiplier output being 0. this control bit is included for maximum flexibility and is normally not used.
ad1940/ad1941 rev. b | page 25 of 36 initialize data memory with zeros (bit 7) setting this bit to 1 initializes all data memory locations to 0. this bit is cleared to 0 after the operation is complete. this bit should be asserted after a complete program/parameter download has occurred to ensure click-free operation. zero serial input port (bit 6) when this bit is set to 1, the 16 serial input channels are forced to all 0s. initiate safe transfer to target ram (bit 5) setting this bit to 1 initiates a safeload transfer to the target/slew ram. this bit clears when the operation is completed. of five safeload register pairs (address/data), only those registers that have been written since the last safeload event are transferred. address 0 corresponds to the first target ram location. initiate safe transfer to parameter ram (bit 4) setting this bit to 1 initiates a safeload transfer to the parameter ram. this bit clears when the operation is completed. of five safeload registers pairs (address/data), only those registers that have been written since the last safeload event are transferred. address 0 corresponds to the first parameter ram location. input serial port to sequencer sync (bits 3:2) normally, the internal sequencer is synchronized to the incoming audio frame rate by comparing the internal program counter with the edge of the lrclk input signal. in some cases the ad1940/ad1941 may be used to decimate an incoming signal by some integer factor. in this case, it is desirable to synchronize the sequencer to a submultiple of the incoming lrclk rate so more than one audio input sample is available to the program during a single audio output frame. for example, if these bits are set to 01 (lrclk/2), a 96 khz input can be used with a 48 khz output, allowing two consecutive input samples to be processed during a single audio output frame. operation in this mode may require custom assembly language coding in the adi graphical tools. program length (bits 1:0) 96 khz and 192 khz modes these bits set the length of the internal program. the default program length is 1,536 instructions for f s = 48 khz, but the program length can be shortened by factors of 2 to accom- modate sample rates higher than 48 khz. for f s = 96 khz, the program length should be set to 768 (01). for f s = 192 khz, the program length should be set to 384 steps (10). a program length of 192 steps is available, but is not commonly used. low power mode this setting can also be used to reduce the power consumption of the ad1940/ad1941. if the program length is set to 768 steps and f s = 48 khz instead of 96 khz, then the power consumption of the part is cut approximately in half. correspondingly, when the program length is set to 384 steps with f s = 48 khz, the power consumption is about ? of what it is in normal operation with 1,536 program steps and f s = 48 khz. table 25. ram configuration register (2643) register bits function 7:4 reserved 3:0 ram modulo, 1 lsb corresponds to 512 locations, max = 0b1100 (6 k words) ram configuration register the ad1940/ad1941 use a modulo ram addressing scheme to allow filters and other blocks to be coded easily without requiring filter data to be explicitly moved during the filtering operation. this is accomplished by adding the contents of an address offset counter to the actual base address supplied in the ad1940/ad1941s cores. this address offset counter is incre- mented automatically at the audio frame rate. this method works well for most audio applications that involve filtering. in some cases, however, it is desirable to have direct access to the ram, bypassing the autoincrementing address offset counter. for this reason, the data memories in the ad1940/ad1941 can be divided into modulo and nonmodulo portions by programming the ram configuration register ( tabl e 25 ). the address range from 0 to 512 (ram config- uration register contents) is treated as modulo memory with autoincrementing address offset registers. the maximum setting of this register is the full size of the ram, or 6,144 (6 k words) data words. note that addresses in this range automatically wrap around the modulo boundary as set by the register. this feature is not normally used with adi supplied blocks. for normal operation, this register may be left in its default state, which sets up the entire ram to use the autoincrement feature. this feature is included for maximum programming flexibility and may be used in the case of special software development. control port read/write data formats the read/write formats of the control port are designed to be byte oriented. this allows easy programming of common microcontroller chips. in order to fit into a byte-oriented format, 0s are appended to the data fields before the msb in order to extend the data word to the next multiple of eight bits. for example, 28-bit words written to the parameter ram are appended with four leading 0s to reach 32 bits (four bytes); 40-bit words written to the program ram are not appended with any 0s because it is already a full 5 bytes. these zero extended data fields are appended to a 3-byte field consisting of a 7-bit chip address, a read/write bit, and an 11-bit ram/ register address. the control port knows how many data bytes to expect based on the address that is received in the first three bytes.
ad1940/ad1941 rev. b | page 26 of 36 the total number of bytes for a single location write command can vary from four bytes (for a control register write), to eight bytes (for a program ram write). burst mode may be used to fill contiguous register or ram locations. a burst mode write is done by writing the address and data of the first ram/register location to be written. rather than ending the control port transaction (by bringing the clatch signal high in the ad1940/ad1941, after the data word, as would be done in a single address write, the next data word can be written immediately without first writing its specific address). the ad1940/ad1941 control ports autoincrement the address of each write, even across the boundaries of the different rams and registers. table 26. parameter ram read/write format (single address) byte 0 byte 1 byte 2 byte 3 bytes 4C6 chip_adr [6:0], w /r 0000, param_adr [11:8] param_adr [7:0] 0000, param [27:24] param [23:0] table 27. parameter ram block read/write format (burst mode) byte 0 byte 1 byte 2 byte 3 bytes 4C6 bytes 710 bytes 1114 1 chip_adr [6:0], w /r 0000, param_adr [11:8] param_adr [7:0] 0000, param [27:24] param [23:0] 0000, param [27:0] 0000, param [27:0] param_adr + 1 param_adr + 2 1 burst mode data transfers can continue beyond the three words that are illustrated here in the s ame sequential word format. th e register/ram address auto- increments until the data transfer reaches the ic's last address. table 28. program ram read/wri te format (single address) byte 0 byte 1 byte 2 bytes 3C7 chip_adr [6:0], w /r 0000, prog_adr [11:8] prog_adr [7:0] prog [39:0] table 29. program ram block read/write format (burst mode) byte 0 byte 1 byte 2 bytes 37 bytes 812 bytes 1317 1 chip_adr [6:0], w /r 0000, prog_adr [11:8] prog_adr [7:0] pr og [39:0] prog [39:0] prog [39:0] prog_adr +1 prog_adr +2 1 burst mode data transfers can continue beyond the three words that are illustrated here in the s ame sequential word format. th e register/ram address auto- increments until the data transfer reaches the ic's last address. table 30. control register read/write form at (core, serial out 0, serial out 1) byte 0 byte1 byte 2 byte 3 byte 4 chip_adr [6:0], w /r 0000, reg_adr [11:8] reg_adr [7:0 ] data [15:8] data [7:0] table 31. control register read/write form at (ram configuration, serial input) byte 0 byte1 byte 2 byte 3 chip_adr [6:0], w /r 0000, reg_adr [11:8] reg_adr [7:0] data [7:0]
ad1940/ad1941 rev. b | page 27 of 36 table 32. data capture register write format byte 0 byte 1 byte 2 byte 3 byte 4 chip_adr [6:0], w /r 0000, data_capture_adr [11:8] data_cap ture_adr [7:0] 000, progcount [10:6] 1 progcount [5:0] 1 , regsel [1:0] 2 1 progcount [10:0] = value of program counter where trap occurs (the table of values is generated by the program compiler). 2 regsel [1:0] selects one of four registers (see data capture registers section). table 33. data capture (control port readback) register read format byte 0 byte 1 byte 2 bytes 3C5 chip_adr [6:0], w /r 0000, data_capture_adr [11:8] data_c apture_adr [7:0] data [23:0] table 34. safeload register data write format byte 0 byte 1 byte 2 byte 3 bytes 4C7 chip_adr [6:0], w /r 0000, safeload_adr [11:8] safeload_adr [7 :0] 000000, data [33:32] data [31:0] table 35. safeload register address write format byte 0 byte 1 byte 2 byte 3 byte 4 chip_adr [6:0], w /r 0000, safeload_adr [11:8] safeload_adr [7:0 ] 000000, param_adr [9:8] param_adr [7:0]
ad1940/ad1941 rev. b | page 28 of 36 serial data input/output ports the ad1940/ad1941s flexible serial data input and output ports can be set to accept or transmit data in 2-channel formats or in an 8- or 16-channel tdm stream. data is processed in twos complement, msb first format. the left channel data field always precedes the right channel data field in the 2-channel streams. in the tdm modes, slots 0 to 3 (8-channel tdm) or slots 0 to 7 (16-channel tdm) fall in the first half of the audio frame, and slots 4 to 7 (or slots 8 to 15 in 16-channel tdm) are in the second half of the frame. the serial modes are set in the serial output and serial input control registers. the input control register allows control of clock polarity and data input modes. the valid data formats are i 2 s , left-justified, right-justified (24-, 20-, 18-, or 16-bit), 8-channel, and 16-channel tdm. in all modes except for the right-justified modes, the serial port accepts an arbitrary number of bits up to a limit of 24. extra bits do not cause an error, but they are trun- cated internally. proper operation of the right-justified modes requires that there be exactly 64 bclks per audio frame. the tdm data is input on sdata_in2 and sdata_in3 when in 2 8-channel tdm mode, and on sdata_in2 in 16-channel tdm mode. the lrclk in tdm mode can be input to the ad1940/ad1941 as either a 50/50 duty cycle clock or as a bit- wide pulse. the two clock domains on the serial output ports can generate two separate 8-channel tdm streams or one 16-channel tdm stream. when in 16-channel tdm mode, the data is clocked by lrclk_out0 and bclk_out0. the ad1940/ad1941 must be in slave mode for 16-channel tdm mode, unless the data is sampled at 48 khz; the parts cannot generate a tdm bit clock that is fast enough to support 96 khz or 192 khz. in 8-channel tdm mode, the ad1940/ad1941 can be masters for 48 khz and 96 khz data, but not for 192 khz data. table 36 displays the modes in which the serial output port will function. the output control registers give the user control of clock polarities, clock frequencies, clock types, and data format. in all modes except for the right-justified modes (msb delayed by 8, 12, or 16), the serial port accepts an arbitrary number of bits up to a limit of 24. extra bits do not cause an error, but are truncated internally. proper operation of the right-justified modes requires the lsb to align with the edge of the lrclk. the default settings of all serial port control registers correspond to 2-channel i 2 s mode. lrclk_out0 and bclk_out0 are clocks for serial output ports 0 to 7, and lrclk_out1 and bclk_out1 clock ports 8 to 15. all registers default to being set as all 0s. all register settings apply to both master and slave modes unless otherwise noted. table 37 shows the proper configurations for standard audio data formats. table 36. serial output port ma ster/slave mode capabilities f s 2-channel modes (i 2 s, left-justified, right-justified) 8-channel tdm 16-channel tdm 48 khz master and slave master and slave master and slave 96 khz master and slave master and slave slave only 192 khz master and slave slave only slave only table 37. data format configurations format lrclk polarity lrclk ty pe bclk polarity msb position i 2 s ( figure 23 ) frame begins on falling edge clock data changes on falling edge delayed from lrclk edge by one bclk left-justified ( figure 24 ) frame begins on rising edge clock data changes on falling edge aligned with lrclk edge right-justified ( figure 25 ) frame begins on rising edge clock data changes on falling edge delaye d from lrclk edge by 8, 12, or 16 bclks tdm with clock ( figure 26 ) frame begins on falling edge clock data changes on falling edge delayed from start of word clock by one bclk tdm with pulse ( figure 27 ) frame begins on rising edge pulse data changes on falling edge delaye d from start of word clock by one bclk
ad1940/ad1941 rev. b | page 29 of 36 table 38. serial output control register 1 (channels 0C7) (2644) bits function 15 dither enable 0 = diabled 1 = enabled 14 internally link tdm streams into single, 16-channel stream 0 = indepenent 1 = linked 13 lrclk polarity 0 = frame begins on falling edge 1 = frame begins on rising edge 12 bclk polarity 0 = data changes on falling edge 1 = data changes on rising edge 11 master/slave 0 = slave 1 = master 10:9 bclk frequency (master mode only) 00 = core_clock/24 01 = core_clock/12 10 = core_clock/6 11 = core_clock/3 8:7 frame sync frequency (master mode only) 00 = core_clock/1536 01 = core_clock/768 10 = core_clock/384 6 frame sync type 0 = lrclk 1 = pulse 5 serial output/ tdm mode control 0 = 8 serial data outputs 1 = enable tdm (8- or 16-channel) on sdata_out0 4:2 msb position 000 = delay by 1 001 = delay by 0 010 = delay by 8 011 = delay by 12 100 = delay by 16 101 reserved 111 reserved 1:0 output word length, channels 0C7 00 = 24 bits 01 = 20 bits 10 = 16 bits 11 = reserved table 39. serial output control register 2 (channels 8C15) (2645) bits function 15 dither enable 0 = disabled 1 = enabled 14 data capture serial out enable (uses sdata_out7) 0 = disable 1 = enable 13 lrclk polarity 0 = frame begins on falling edge 1 = frame begins on rising edge 12 bclk polarity 0 = data changes on falling edge 1 = data changes on rising edge 11 master/slave 0 = slave 1 = master 10:9 bclk frequency (master mode only) 00 = core_clock/24 01 = core_clock/12 10 = core_clock/6 11 = core_clock/3 8:7 frame sync frequency (master mode only) 00 = core_clock/1536 01 = core_clock/768 10 = core_clock/384 6 frame sync type 0 = lrclk 1 = pulse 5 serial output/tdm mode control 0 = 8 serial data outputs 1 = enable tdm on sdata_out4 (8-channel) or sdata_out0 (16-channel) 4:2 msb position 000 = delay by 1 001 = delay by 0 010 = delay by 8 011 = delay by 12 100 = delay by 16 101 reserved 111 reserved 1:0 output word length, channels 8C15 00 = 24 bits 01 = 20 bits 10 = 16 bits 11 = reserved
ad1940/ad1941 rev. b | page 30 of 3 6 serial output control registers dither enable (bit 15) setting this bit to 1 enables dither on the appropriate channels. internally link tdm streams into single 16-channel stream (bit 14, serial output control register 1) when this bit is set to 1, the tdm output stream is output in a single 16-channel stream on sdata_out0. when set to 0, tdm data is output on two independent 8-channel streams on pins sdata_out0 and sdata_out4. data capture serial out enable (bit 14, serial output control register 2) when set to 1, sdata_out7 is set as the output of the data capture digital output registers (2640C2641). see the data capture registers section for a full explanation of this mode. lrclk polarity (bit 13) when set to 0, the left channel data is clocked when lrclk is low, and the right data clocked when lrclk is high. when set to 1, this is reversed. bclk polarity (bit 12) this bit controls on which edge of the bit clock the output data is clocked. data changes on the falling edge of bclk_outx when this bit is set to 0, and on the rising edge when this bit is set at 1. master/slave (bit 11) this bit sets whether the output port is a clock master or slave. the default setting is slave; on power-up, pins bclk_outx and lrclk_outx are set as inputs until this bit is set to 1, at which time they become clock outputs. bclk frequency (bits 10:9) when the output port is being used as a clock master, these bits set the frequency of the output bit clock, which is divided down from the internal 73.728 mhz core clock. frame sync frequency (bits 8:7) when the output port is used as a clock master, these bits set the frequency of the output word clock on the lrclk_outx pins, which is divided down from the internal 73.728 mhz core clock. frame sync type (bit 6) this bit sets the type of signal on the lrclk_outx pins. when set to 0, the signal is a word clock with a 50% duty cycle; when set to 1, the signal is a pulse with a duration of one bit clock at the beginning of the data frame. serial output/tdm mode control (bit 5) setting this bit to 1 changes the output port from multiple serial outputs to a single tdm output stream on the appropriate sdata_outx pin. this bit must be set in both serial output control registers to enable 16-channel tdm on sdata_out0. msb position (bits 4:2) these three bits set the position of the msb of data with respect to the lrclk edge. the data outputs of the ad1940/ad1941 are always msb first. output word length (bits 1:0) these bits set the word length of the output data-word. all bits following the lsb are set to 0. table 40. serial input control register (2646) register bits function 5 8-/16-channel tdm input 0 = dual 8-channel tdm 1 = 16-channel tdm input 4 lrclk polarity 0 = frame begins on falling edge 1 = frame begins on rising edge 3 bclk polarity 0 = data changes on falling edge 1 = data changes on rising edge 2:0 serial input mode 000 = i 2 s 001 = left-justified 010 = tdm 011 = right-justified, 24-bit 100 = right-justified, 20-bit 101 = right-justified, 18-bit 110 = right-justified, 16-bit serial input control register 8-/16-channel tdm input (bit 5) setting this bit to 0 puts the ad1940/ad1941 into dual 8-channel tdm input mode, with the two streams coming in on sdata_in2/tdm_in1 and sdata_in3/tdm_in0. channels 0 to 7 are input on tdm_in0 and channels 8 to 15 come in on tdm_in1. setting this bit to 1 puts the part in 16-channel tdm input mode, input on tdm_in1. lrclk polarity (bit 4) when set to 0, the left channel data on the sdata_inx pins is clocked when lrclk_in is low; the right input data clocked when lrclk_in is high. when set to 1, this is reversed. in tdm mode, when this bit is set to 0, data is clocked in starting with the next appropriate bclk edge (set in bit 3 of this register) that follows a falling edge on the lrclk_in pin. when set to 1 and running in tdm mode, the input data is valid on the bclk edge following a rising edge on the word clock (lrclk_in). the serial input port can also operate with a pulse input signal, rather than a clock. in this case, the first edge of the pulse is used by the ad1940/ad1941 to start the data frame. when this polarity bit is set to 0, a low pulse should be used, and a high pulse should be used when the bit it set to 1.
ad1940/ad1941 rev. b | page 31 of 3 6 bclk polarity (bit 3) this bit controls on which edge of the bit clock the input data changes, and on which edge it is clocked. data changes on the falling edge of bclk_in when this bit is set to 0, and on the rising edge when this bit is set at 1. serial input mode (bits 2:0) these two bits control the data format that the input port expects to receive. bits 3 and 4 of this control register override the settings in bits 2:0, so all four bits must be changed together for proper operation in some modes. the clock diagrams for these modes are shown in figure 23 , figure 24 , and figure 25 . note that for left-justified and right-justified modes the lrclk polarity is high, then low, which is opposite from the default setting of bit 4. when these bits are set to accept a tdm input, the ad1940/ ad1941s data starts after the edge defined by bit 4. figure 26 shows an 8-channel tdm stream with a high-to-low triggered lrclk and data changing on the falling edge of the bclk. the ad1940/ad1941 expects the msb of each data slot delayed by one bclk from the beginning of the slot, just like in the stereo i 2 s format. in 8-channel tdm mode, channels 0 to 3 are in the first half of the frame, and channels 4 to 7 are in the second half. when in 16-channel tdm mode, the first half-frame holds channels 0 to 7, and the second half-frame holds channels 8 to 15. figure 26 shows just one of the formats in which the ad1940/ad1941 can operate in tdm mode. please refer to the serial data input/output ports section for a more complete description of the modes of operation. figure 27 shows an example of a tdm stream running with a pulse word clock, which would be used to interface to adi codecs in their auxiliary mode. to work in this mode on either the input or output serial ports, the ad1940/ad1941 should be set to frame beginning on the rising edge of lrclk, data changing on the falling edge of bclk, and msb position delayed from the start of the word clock by one bclk. table 37 explains the clock settings for each of these formats. lrclk bclk sdata msb left channel lsb msb right channel lsb 1 /f s 04607-0-023 figure 23. i 2 s mode16 to 24 bits per channel lrclk bclk sdata left channel msb lsb msb right channel lsb 1 /f s 04607-0-024 figure 24. left-justified mode16 to 24 bits per channel lrclk bclk sdata left channel msb lsb msb right channel lsb 1 /f s 04607-0-025 figure 25. right-justified mode16 to 24 bits per channel
ad1940/ad1941 rev. b | page 32 of 3 6 lrclk bclk data slot 0 slot 1 slot 4 slot 5 32 bclks msb msb?1 msb?2 256 bclks slot 2 slot 3 slot 6 slot 7 lrclk bclk data 04607-0-012 figure 26. 8-channel tdm mode lrclk slot 0 slot 1 slot 2 slot 3 slot 4 slot 5 slot 6 slot 7 ch 0 bclk sdata msb tdm 8th ch 32 bclks msb tdm 04607-0-022 figure 27. tdm mode with pulse word clock
ad1940/ad1941 rev. b | page 33 of 3 6 initialization power-up sequence the ad1940/ad1941 have a built-in power-up sequence that initializes the contents of all internal rams. during this time, the contents of the internal program boot rom are copied to the internal program ram memory and the parameter ram (all 0s) is filled with values from its associated boot rom. the default boot rom program simply copies the serial inputs to the serial outputs with no processing. the data memories are also cleared during this time. the boot sequence, which starts on the rising edge of the resetb pin, lasts for 8,192 cycles of the signal on the mclk pin at start-up. assuming even the slowest possible signal on this pin, a 64 f s clock, the boot sequence still completes before the pll locks to the input clock. since the boot sequence requires a stable master clock, the user should avoid writing to or reading from the registers until the mclk input signal has settled and the pll has locked. the pll takes approximately 3 ms to lock. coming out of reset, the clock mode is imme- diately set by the pll_ctrl0, pll_ctrl1, and pll_ctrl2 pins. reset is synched to the falling edge of the internal mclk. the power-up default signal processing flow in the ad1940/ ad1941 simply takes the eight inputs and copies these signals to the 16 digital outputs, as shown in figure 28 . 04607-0-004 sdata_in0 sdata_in1 sdata_in2 sdata_in3 sdata_out0 sdata_out1 sdata_out2 sdata_out3 sdata_out4 sdata_out5 sdata_out6 sdata_out7 figure 28. default program signal flow setting master clock/pll mode the ad1940/ad1941s mclk input feeds a pll, which gen- erates the 1536 f s clock to run the dsp core. in normal operation, the input to mclk must be one of the following; 64 f s , 256 f s , 384 f s , or 512 f s , where f s is the input sampling rate. the mode is set on pll_ctrl0, pll_ctrl1, and pll_ctrl2, according to table 41 . if the ad1940/ad1941 are set to receive double-rate signals (by reducing the number of program steps/sample by a factor of 2 using the core control register), then the master clock frequencies must be either 32 f s , 128 f s , 192 f s , or 256 f s . if the ad1940/ad1941 are set to receive quad rate signals (by reducing the number of program steps/sample by a factor of 4 using the core control register), then the master clock frequencies must be 16 f s , 64 f s , 96 f s , or 128 f s . on power-up, a clock signal must be present on mclk so that the ad1940/ad1941 can complete their initialization routine. the pll can also run in bypass mode, where the clock present on mclk is fed directly to the dsp core, although this setting is not recommended for normal operation. table 41. pll modes mclk input pll_ctrl2 pll_ctrl1 pll_ctrl0 64 f s 0 0 0 256 f s 0 1 0 384 f s x 1 x 1 1 512 f s 1 0 0 bypass 1 1 0 1 x = dont care the clock mode should not be changed without also resetting the ad1940/ad1941. if the mode is changed on the fly, a click or pop may result on the outputs. the state of the pll_ctrlx pins should be changed while resetb is held low. voltage regulator the ad1940/ad1941 include an on-board voltage regulator that allows the chip to be used in systems where a 2.5 v supply is not available, but 3.3 v or 5 v is. the only external components needed for this are a pnp transistor such as a zx5t953g, a single capacitor, and a single resistor. the recommended design for the voltage regulator is shown in figure 29 . the 10 f and 100 nf capacitors shown in this schematic are recommended for bypassing, but are not necessary for operation. here, vdd is the main system voltage (3.3 v or 5 v) and should be connected to vsupply. 2.5 v is generated at the transistors collector, which is connected to the vdd pins, pll_vdd and vsense. the reference voltage on vref is 1.15 v and is generated by the regulator. a 1 nf capacitor should be connected between this pin and ground. vdrive is connected to the base of the pnp transistor. a 1 k resistor should be connected between vdrive and vsupply. 10 f 10 f 100nf 100nf 1nf 1k ad1940/ad1941 dvdd zx5t953g 04607-0-009 vsupply vref vdrive vsense vdd + + pll_vdd figure 29. voltage regulator design
ad1940/ad1941 rev. b | page 34 of 3 6 there are two specifications that should be taken into consideration when choosing a regulator transistor. first, the transistors current amplification factor (h fe or beta) should be at least 100. second, the transistors collector needs to be able to dissipate the heat generated when regulating from 3.3 v or 5 v to 2.5 v. the maximum current draw of the ad1940/ad1941 is 163 ma (maximum digital current + maximum pll current). the equations for the minimum power dissipation specs for both 3.3 v and 5 v follow: (5 v C 2.5 v) 163 ma = 480 mw (3.3 v C 2.5 v) 163 ma = 130 mw if the regulator is not used in the design, vref, vdrive, and vsense can be tied to ground . vsupply should be connected to the same or higher potential as the vdd pin.
ad1940/ad1941 rev. b | page 35 of 3 6 outline dimensions compliant to jedec standards ms-026-bbc top view (pins down) 1 12 13 25 24 36 37 48 0.27 0.22 0.17 0.50 bsc lead pitch 1.60 max 0.75 0.60 0.45 view a pin 1 0.20 0.09 1.45 1.40 1.35 0.08 coplanarity view a rotated 90 ccw seating plane 7 3.5 0 0.15 0.05 9.20 9.00 sq 8.80 7.20 7.00 sq 6.80 051706-a figure 30. 48-lead low-profile quad flat package [lqfp] (st-48) dimensions shown in millimeters ordering guide model 1 temperature range package description package option ad1940ystz C40c to +105c 48-lead lqfp st-48 AD1940YSTZRL C40c to +105c 48-lead lqfp, 13 tape and reel st-48 ad1941ystz C40c to +105c 48-lead lqfp st-48 ad1941ystzrl C40c to +105c 48-lead lqfp, 13 tape and reel st-48 eval-ad1940az evaluation board eval-ad1940minibz evaluation board 1 z = rohs compliant part.
ad1940/ad1941 rev. b | page 36 of 36 notes purchase of licensed i 2 c components of analog devices or one of its sublicensed associ ated companies conveys a license for the purchaser under the phi lips i 2 c patent rights to use these components in an i 2 c system, provided that the system conforms to the i 2 c standard specification as defined by philips. ?2004C2010 analog devices, inc. all rights reserved. trademarks and registered trademarks are the property of their respective owners. d04607-0-4/10(b)


▲Up To Search▲   

 
Price & Availability of AD1940YSTZRL

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X